package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 3:08:52 PM by Hibernate Tools 3.2.0.CR1
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * TbDefinicionDocExo generated by hbm2java
 */
@Entity
@Table(name = "TB_DEFINICION_DOC_EXO", schema = "CATALOGOS", uniqueConstraints = {})
public class TbDefinicionDocExo implements Serializable {

    private static final long serialVersionUID = 1L;
    private String ctipoDoc;
    private String stipoDoc;
    private String cusuario;
    private Date fhingreso;
    private String scontrolFile;
    private Integer bstatus;
    private String tablename;
    private Integer coaFile;



    public TbDefinicionDocExo() {
    }

    public TbDefinicionDocExo(String ctipoDoc) {
        this.ctipoDoc = ctipoDoc;
    }

    public TbDefinicionDocExo(String ctipoDoc, String stipoDoc,
            String cusuario, Date fhingreso, String scontrolFile,
            Integer bstatus, String tablename, Integer coaFile) {
        this.ctipoDoc = ctipoDoc;
        this.stipoDoc = stipoDoc;
        this.cusuario = cusuario;
        this.fhingreso = fhingreso;
        this.scontrolFile = scontrolFile;
        this.bstatus = bstatus;
        this.tablename = tablename;
        this.coaFile = coaFile;
        
    }

    @Id
    @Column(name = "C_TIPO_DOC", unique = true, nullable = false, insertable = true, updatable = true, length = 4)
    @NotEmpty(message = "{NotEmpty.TbDefinicionDocExo.ctipoDoc}")
    public String getCtipoDoc() {
        return this.ctipoDoc;
    }

    public void setCtipoDoc(String ctipoDoc) {
        this.ctipoDoc = ctipoDoc;
    }

    @Column(name = "S_TIPO_DOC", unique = false, nullable = false, insertable = true, updatable = true, length = 255)
    public String getStipoDoc() {
        return this.stipoDoc;
    }

    public void setStipoDoc(String stipoDoc) {
        this.stipoDoc = stipoDoc;
    }

    @Column(name = "C_USUARIO", unique = false, nullable = false, insertable = true, updatable = true, length = 30)
    @NotEmpty
    public String getCusuario() {
        return this.cusuario;
    }

    public void setCusuario(String cusuario) {
        this.cusuario = cusuario;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "FH_INGRESO", unique = false, nullable = false, insertable = true, updatable = true, length = 7)
    @NotNull
    public Date getFhingreso() {
        return this.fhingreso;
    }

    public void setFhingreso(Date fhingreso) {
        this.fhingreso = fhingreso;
    }

    @Column(name = "S_CONTROL_FILE", unique = false, nullable = false, insertable = true, updatable = true, length = 4000)
    public String getScontrolFile() {
        return scontrolFile;
    }

    public void setScontrolFile(String scontrolFile) {
        this.scontrolFile = scontrolFile;
    }

    @Column(name = "B_STATUS", precision = 1, scale = 0)
    public Integer getBstatus() {
        return this.bstatus;
    }

    public void setBstatus(Integer bstatus) {
        this.bstatus = bstatus;
    }

    @Column(name = "TABLE_NAME", unique = false, nullable = false, insertable = true, updatable = true, length = 30)
    public String getTablename() {
        return this.tablename;
    }

    public void setTablename(String tablename) {
        this.tablename = tablename;
    }
    
    @Column(name = "COA_FILE", length = 1)
    public Integer getCoaFile() {
        return this.coaFile;
    }

    public void setCoaFile(Integer coaFile) {
        this.coaFile = coaFile;
    }    
}